//
//  TimeNSStringTool.m
//  BSBDJ
//
//  Created by user on 16/5/27.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import "TimeNSStringTool.h"

@implementation TimeNSStringTool
+ (NSString *)getForamttPlaycount :(CGFloat)playcount{
    NSString *countStr;
    if (playcount > 10000) {
        countStr = [NSString stringWithFormat:@"%.1f万",playcount / 10000];
    }else{
        countStr = [NSString stringWithFormat:@"%f",playcount];
    }
    return countStr;
}

+ (NSString *)getFormatterTime :(int)time{
    
    int sec = time % 60;
    int min = time / 60;
    NSString *newTime = [NSString stringWithFormat:@"%02d:%02d",min,sec];
    return newTime;
}

@end
